package com.example.newnoke.mvp.presenter;


import com.example.newnoke.data.BaseDatas;
import com.example.newnoke.data.FTData;
import com.example.newnoke.mvp.view.IFtV;
import com.geya.jbase.mvp.presenter.BasePresenter;

public class FtPresenter extends BasePresenter<IFtV> {

    public FtPresenter(IFtV mvpView) {
        super(mvpView);
    }

    @Override
    public void serverResponseObj(Object o) {


        if (o instanceof FTData){
            getView().setData(((FTData) o).getData());
        }else if(o instanceof BaseDatas){
            if (((BaseDatas) o).getCode()==200){

                getView().pay("","");
            }
        }

    }
}
